/* -----------------
* brief
* 1. this is code gen by tools
* 2. array like [a,b,c] after each field, define the ui html tag in view,
		a for title,
		b for show or not ,
		c for element html tag , currently suppor : check、radio、select、input、textarea、upload tag
* 3. XXX
*/

package system

import "github.com/mjiulee/lego"

func init() {
	lego.AddBeanToSynList(new(SysMenu))
}

/* table: "tb_sys_menu"
 * -----------------
 */
type SysMenu struct {
	Id    int64  `xorm:"pk" json:",string"`                  // ["id","hide","hidden"]
	IfDel string `xorm:"char(1) default 'N'"` // ["deleted","hide","hidden"]
	Cdate string `xorm:"DateTime created"`    // ["create","show","datetime"]
	Udate string `xorm:"DateTime updated"`    // ["update","show","datetime"]
	// add your custom field here
	Pid     int64  `xorm:"default 0 " json:",string"`   // ["父菜单","show","select"]
	Name    string `xorm:"varchar(32)"`  // ["菜单名","show","input"]
	Url     string `xorm:"varchar(127)"` // ["链接","show","input"]
	MType   int    `xorm:"default 0"`    // ["类型","show","radio"]
	Show    int    `xorm:"default 1"`     // ["显示","show","radio"]
	SortIdx int    `xorm:"default 0"`    // ["排序","show","input"]
	// other
	Check   bool   `xorm:"-"`
}
